using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;

namespace Xeml.Document
{
    public class TaggedAnnotation
    {
        private string _tag;
        private string _annotation;

        #region Properties
        public string Annotation
        {
            get { return _annotation; }
            set { _annotation = value; }
        }

        public string Tag
        {
            get { return _tag; }
            set { _tag = value; }
        }

        #endregion

        #region ctors
        public TaggedAnnotation(string tag)
        {
            _tag = tag;
        }

        public TaggedAnnotation(string tag, string anno)
            : this(tag)
        {
            _annotation = anno;
        }
        #endregion


        private TaggedAnnotationCollection _collection;
        public TaggedAnnotationCollection Collection
        {
            get { return _collection; }
            set
            {
                if (value != _collection)
                {
                    this._collection = value;

                }

            }
        }


    }
}
